// cfcardDlg.h : header file
//

#if !defined(AFX_CFCARDDLG_H__FBCA9A53_F4B7_42BE_BA99_93350A2CFC0A__INCLUDED_)
#define AFX_CFCARDDLG_H__FBCA9A53_F4B7_42BE_BA99_93350A2CFC0A__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

/////////////////////////////////////////////////////////////////////////////
// CCfcardDlg dialog

class CCfcardDlg : public CDialog
{
// Construction
public:
	CCfcardDlg(CWnd* pParent = NULL);	// standard constructor

// Dialog Data
	//{{AFX_DATA(CCfcardDlg)
	enum { IDD = IDD_CFCARD_DIALOG };
	CButton	m_ExitButtonControl;
	CButton	m_StartButtonControl;
	CProgressCtrl	m_WriteProcess;
	CStatic	m_ProcessStatic;
	CStatic	m_TotalTimeStatic;
	CStatic	m_TimeRemainStatic;
	CStatic	m_SpeedStatic;
	CStatic	m_TimeElapsedStatic;
	CEdit	m_SourceFileEdit;
	CComboBox	m_DriverCombo;
	//}}AFX_DATA

	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CCfcardDlg)
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);	// DDX/DDV support
	//}}AFX_VIRTUAL
	static unsigned int copyFile(LPVOID pParam);
	static unsigned int copyFlatFile();
	static unsigned int copyTarFile(unsigned char *buffer);
	static unsigned int readSource(unsigned char *buffer, DWORD num);
	static void closeSource(void);
	bool writeActive;
	UINT m_nTimer;
// Implementation
protected:
	HICON m_hIcon;

	// Generated message map functions
	//{{AFX_MSG(CCfcardDlg)
	virtual BOOL OnInitDialog();
	afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
	afx_msg void OnPaint();
	afx_msg HCURSOR OnQueryDragIcon();
	afx_msg void OnSelectFileButton();
	afx_msg void OnRefreshButton();
	afx_msg void OnStartStopButton();
	afx_msg void OnExitButton();
	afx_msg void OnTimer(UINT nIDEvent);
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_CFCARDDLG_H__FBCA9A53_F4B7_42BE_BA99_93350A2CFC0A__INCLUDED_)
